package com.ninong.ker.admin.mapper;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ninong.ker.admin.domain.Tenant;
import com.ninong.ker.admin.domain.User;
import com.ninong.ker.admin.rest.vo.TenantVO;
import com.ninong.ker.admin.service.dto.TenantDTO;

/**
 * <p>
 * saas租户 Mapper 接口
 * </p>
 *
 * @author JMZ
 * @since 2020-09-12
 */
public interface TenantMapper extends BaseMapper<Tenant> {

    /**
     * 根据租户id和手机号查询 唯一登录用户
     * @param param
     * @return
     */
    User selectUserTenant(Map<String, Object> param);

	List<TenantVO> selectListPage(TenantDTO dto);
}
